Test = inherit(Singleton)

function Test:constructor()
	local f = CreateFrame("Frame")
	f:SetScript("onUpdate", function () _G["CastingBarFrame"]:ClearAllPoints();_G["CastingBarFrame"]:SetPoint("CENTER",0,-100) end);	
end

SLASH_COMMANDXYZ1 = "/zone"

function SlashCmdList.COMMANDXYZ()
	minimapzonetext = GetMinimapZoneText()
	print (minimapzonetext)
	for key, value in pairs(_G) do
		if type(key) == "string" then
			if key:find("TEXT_FONT") then
				print(key)
			end
		end
	end
end	

--##############################
--##############################
--##############################
--##############################
--##############################


--[[local testFrame = CreateFrame("Frame",nil,UIParent)
testFrame:SetPoint("CENTER",0,200)
testFrame:SetWidth(200)
testFrame:SetHeight(60)
testFrame:SetBackdrop(
	{
		edgeFile = "Interface/DialogFrame/UI-DialogBox-Border",
		edgeSize = 10,
	}
)
local frameTexture = testFrame:CreateTexture(nil,"BACKGROUND")
frameTexture:SetTexture(0,0,0,0.25)
frameTexture:SetAllPoints(testFrame)
testFrame.texture = frameTexture
testFrame:Show()



testFrame.COMBFRAMES = {}

for i = 0, 4 do
	testFrame.COMBFRAMES[#testFrame.COMBFRAMES+1] = CreateFrame("Frame",nil,testFrame)
	testFrame.COMBFRAMES[#testFrame.COMBFRAMES]:SetPoint("TOPLEFT",i*(200/5),-20/2)
	testFrame.COMBFRAMES[#testFrame.COMBFRAMES]:SetWidth(200/5)
	testFrame.COMBFRAMES[#testFrame.COMBFRAMES]:SetHeight(40)
	local tex = testFrame.COMBFRAMES[#testFrame.COMBFRAMES]:CreateTexture(nil,"BACKGROUND")
	tex:SetTexture("Interface/PlayerFrame/UI-PlayerFrame-Deathknight-Ring")
	tex:SetAllPoints(testFrame.COMBFRAMES[#testFrame.COMBFRAMES])
	local foreGround = testFrame.COMBFRAMES[#testFrame.COMBFRAMES]:CreateTexture(nil,"FOREGROUND")
	foreGround:SetTexture("Interface/PlayerFrame/Deathknight-Energize-Blood")
	foreGround:SetAllPoints(testFrame.COMBFRAMES[#testFrame.COMBFRAMES])
	testFrame.COMBFRAMES[#testFrame.COMBFRAMES].texture = tex
	testFrame.COMBFRAMES[#testFrame.COMBFRAMES]:Show()
end















--##############################
--##############################
--##############################
--##############################
--##############################

do 
	local frame = CreateFrame("Frame",nil)
	frame:SetHeight(500)
	frame:SetWidth(500)
	frame.text = frame:CreateFontString(nil, "BACKGROUND", "PVPInfoTextFont")
	frame.text:SetVertexColor(1,1,0)
	frame.text:SetText("nil")
	frame.text:SetAllPoints()
	frame:SetPoint("CENTER",0,200)
	frame:Raise()
	frame:Show()
	frame:SetScript("onUpdate", 
		function() 
			local focus = GetMouseFocus()
			if not focus then
				return
			end
			frame.text:SetText(GetMouseFocus():GetName() or "nil")
		end 
	)
end]]
